package com.heima.wemedia.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmChannel;
import com.heima.wemedia.mapper.WmChannelMapper;
import com.heima.wemedia.service.WmChannelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @program: heima-leadnews
 * @description: 频道业务实现
 * @author: ryp
 * @create: 2023-04-27 11:04
 **/
@Service
@Transactional
@Slf4j
public class WmChannelServiceImpl extends ServiceImpl<WmChannelMapper,WmChannel> implements WmChannelService {

    /**
     * 功能描述: 查询所有频道
     * @return : com.heima.model.common.dtos.ResponseResult
     */
    @Override
    public ResponseResult findAll() {

        return ResponseResult.okResult(list());
    }
}
